<?php
namespace Swiftx\View;
use Swiftx\Interfaces\Http\Response;

class Json implements Response {

    /**
     * 返回数据
     * @var array
     */
    protected $data = [];

    /**
     * 发送数据
     * @return void
     */
    public function send(){
        echo json_encode($this->data);
    }

}